/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 123
 * Date: 2023-04-26
 * Time: 21:25

 */
class Base{
    public int a;
    public int b;
    public int c;

  public Base(){
      this(2);
      a = 2;
      b = 3;
      c = 4;
      fun1();

  }
  public Base(int j){
      a = j;
      b = j;
      c = j;
      fun1();
  }


    public void fun1(){
        System.out.println("父类");
        System.out.println(a+" "+b +"  "+c);
    }
}
class Son extends Base{
    public int a;
    public int b;
    public int c;
   public Son(){
       this(1);
       a = 1;
       b = 2;
       c = 3;
       this.fun1();
   }
   public Son(int i){
       super(4);
       a = i;
       b = i;
       c = i;
       this.fun1();

   }
    void set(){
         a = 2;
         b = 3;
         c = 4;

        System.out.println(a+" "+b +"  "+c);

    }

    public void fun1(){
        System.out.println("子类");
        System.out.println(a+" "+b +"  "+c);

    }

}



public class text {
    public static void main(String[] args) {
     Son son = new Son();

    }
}
